#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
using namespace std;
#include <vector>
#include <string>

void Sort(vector<string>& arr)
{
	int n = arr.size();
	for (int i = 0; i < n - 1; i++)
	{
		for (int j = 0; j < n - 1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				string tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
			}
		}
	}
}
int main()
{
	vector<string> arr;
	arr.push_back("abdc");
	arr.push_back("dasdfe");
	arr.push_back("abdcd");

	Sort(arr);
	for (auto& a : arr)
	{
		cout << a << " ";
	}
	return 0;
}